﻿
namespace NWebMock
{
    public interface IHttpCacheVaryByParams
    {
        #region Properties

        /// <summary>
        /// Gets or sets a value indicating whether an HTTP response varies by Get or Post parameters. 
        /// </summary>
        bool IgnoreParams { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the cache varies according to the specified HTTP request parameter.
        /// </summary>
        /// <param name="header">The name of the custom parameter. </param>
        /// <returns>true if the cache should vary by the specified parameter value.</returns>
        bool this[string header] { get; set; }

        #endregion
    }
}
